/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.uoc.tdp.pac4.only5.domain;

import java.io.Serializable;
import java.util.Date;


/**
 *
 * @author Gerard
 * @author Alex
 */
public class Resource implements Serializable {
    
    private Integer resource_id;
    
    private String resource_desc;
    
    private Integer amount;
    
    private Double price_hour;
    
    private Double price_day;
    
    private Integer notBooked;

    private Date creationDate;
    private String creationUser;
    private Date inactivationDate;
    private String inactivationUser;
    private Date recordDate;

    
    
    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public Double getPrice_day() {
        return price_day;
    }

    public void setPrice_day(Double price_day) {
        this.price_day = price_day;
    }

    public Double getPrice_hour() {
        return price_hour;
    }

    public void setPrice_hour(Double price_hour) {
        this.price_hour = price_hour;
    }

    public String getResource_desc() {
        return resource_desc;
    }

    public void setResource_desc(String resource_desc) {
        this.resource_desc = resource_desc;
    }

    public Integer getResource_id() {
        return resource_id;
    }

    public void setResource_id(Integer resource_id) {
        this.resource_id = resource_id;
    }

    public Integer getNotBooked() {
        return notBooked;
    }

    public void setNotBooked(Integer notBooked) {
        this.notBooked = notBooked;
    }
    
        public Date getCreationDate() {
        return creationDate;
    }

    public void setCreationDate(Date creationDate) {
        this.creationDate = creationDate;
    }

    public String getCreationUser() {
        return creationUser;
    }

    public void setCreationUser(String creationUser) {
        this.creationUser = creationUser;
    }
    
    public Date getInactivationDate() {
        return inactivationDate;
    }

    public void setInactivationDate(Date inactivationDate) {
        this.inactivationDate = inactivationDate;
    }

    public String getInactivationUser() {
        return inactivationUser;
    }

    public void setInactivationUser(String inactivationUser) {
        this.inactivationUser = inactivationUser;
    }

    public Date getRecordDate() {
        return recordDate;
    }

    public void setRecordDate(Date recordDate) {
        this.recordDate = recordDate;
    }

    
    
    @Override
    public String toString() {
        return resource_desc + "(" + resource_id + ")";
    }
    
    
    
}
